linear regression shangeth
Linear Regression Shangeth
You can think of Linear Regression model as a curve fitting or function approximation model. Given a dataset $(X, y)$, the task is to find a relation $f$ between $X$ and $y$ such that $y f(X)$. We are interested in this mapping $f: X \rightarrow y$, as for any given $X$ in the future we can find $y f(X)$. If we can find any the mapping between $X$ and $y$, $y f(X)$, then its easy to predict the values of $y$ for any given $X$. So the prediction will be a line in case of 2-D data like above.